﻿//********************************************************************************//
//创建日期：<创建日期，2017-6-11>
//创建作者：<郭登杰，guodengjie@shanghai3h.com>
//功能说明：地下水欠费信息合计Model
//********************************************************************************//
using System;
using System.Collections.Generic;
using YXYLCommon;
using System.Data;

namespace Entity
{
    [Serializable]
    /// <summary>
    /// 欠费信息合计
    /// </summary>
    public class QSSFQianFeiXXHJ : BaseModel
    {
        public QSSFQianFeiXXHJ()
        {
          
        }

        public string S_YONGHUH { get; set; }

        public string S_YONGHUM { get; set; }


        public decimal N_YINGSHOUJE { get; set; }

        public decimal N_SHISHOUJE { get; set; }


        public override BaseModel ToObject(System.Data.DataRow row)
        {
            this.IsExists = (Convert.ToString(row["S_YONGHUH"])!="-1");
            this.S_YONGHUH = Convert.ToString(row["S_YONGHUH"]);
            this.S_YONGHUM = Convert.ToString(row["S_YONGHUM"]);
            this.N_YINGSHOUJE = Convert.ToDecimal(row["N_YINGSHOUJE"]);
            this.N_SHISHOUJE = Convert.ToDecimal(row["N_SHISHOUJE"]);
            return this;
        }
    }
    public class DALQSSFQianFeiXX : BaseDAL
    {
        public DALQSSFQianFeiXX()
        {

        }
        protected override void fillSaveProc(BaseModel model)
        {
            
        }

        public QSSFQianFeiXXHJ GetHJ(string yhh)
        {
            dbProc.Init("P_DXSSF_QIANFEIXXHJ");
            dbProc.AddParameter("V_YONGHUH", yhh);
            return CommonService.Ini().GetObject<QSSFQianFeiXXHJ>(dbProc);
        }
    }

}